package com.shell.config;

import com.shell.context.utils.ConstantScanner;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ContextConfig {
	@Value("${constant.scanner.locations:com.shell.constant.ind,com.shell.constant.rel}")
	private String ConstantScannerLocations;

	@Bean({ "constantScanner" })
	public ConstantScanner getConstantScanner() {
		ConstantScanner constantScanner = new ConstantScanner();
		constantScanner.setScanPackagePath(this.ConstantScannerLocations);
		return constantScanner;
	}
}
